import { request } from 'umi';

export async function getArticleCollect(params: any) {
  return request('/api/client/getArticleCollect', {
    method: 'GET',
    params,
  });
}
export async function savePageView(params: any) {
  return request('/api/analyse/savePageView', {
    method: 'POST',
    data: params,
  });
}

export async function getCollectList(params: any) {
  return request('/api/analyse/getCollectList', {
    method: 'GET',
    params,
  });
}
export async function getOnePagePv(params: any) {
  return request('/api/analyse/getOnePagePv', {
    method: 'GET',
    params,
  });
}
export async function getOneArticleLiked(params: any) {
  return request('/api/analyse/getOneArticleLiked', {
    method: 'GET',
    params,
  });
}
